package com.zhangliuliu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangliuliu.bean.MedicamentBean;
import org.apache.ibatis.annotations.Param;

public interface MedicService extends IService<MedicamentBean> {
    //添加药剂
    void add(MedicamentBean medicamentBean);
    //按条件分页查询
    IPage<MedicamentBean>cutByItem(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name, @Param("prevent") String prevent,@Param("type") String type);
    //首页展示全部信息
    IPage<MedicamentBean>cutAll(@Param("pageNo") int pageNo,@Param("pageSize") int pageSize);
}
